﻿using Hangfire;
using Hangfire.InMemory;
using LJ.TaskScheduler.Hangfire.Pack;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.TaskScheduler.Hangfire.InMemory.Pack;

public class TaskSchedulerHangfireInMemoryPackBase: TaskSchedulerHangfirePackBase
{
    public override void Add(IPackContext packContext)
    {
        base.Add(packContext);
        GlobalConfiguration.Configuration.UseInMemoryStorage(new InMemoryStorageOptions
        {
            IdType = InMemoryStorageIdType.Guid
        });
    }
}
